package com.iot.system.service.impl;

import com.iot.common.annotation.DataSource;
import com.iot.common.enums.DataSourceType;
import com.iot.system.domain.DongAnOldDeviceInfo;
import com.iot.system.mapper.DongAnOldDeviceInfoMapper;
import com.iot.system.service.TMDongAnOldDeviceInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@DataSource(value = DataSourceType.SLAVE)
public class TMDongAnOldDeviceInfoServiceImpl implements TMDongAnOldDeviceInfoService {

    @Resource
    private DongAnOldDeviceInfoMapper dongAnOldDeviceInfoMapper;

    @Override
    public int insertDongAnOldDeviceInfoList(List<DongAnOldDeviceInfo> list) {
        return dongAnOldDeviceInfoMapper.insertDongAnOldDeviceInfoList(list);
    }
}
